module ActivitiesHelper
  
  def status_for(activity)
    return '<span class="mini-alert green rounded-4 width-50">Done</span>' unless activity.completed_at.nil?
    
    return '<span class="mini-alert darkest rounded-4 width-50">New</span>' if Date.yesterday <= activity.created_at.to_date
    
    return '<span class="mini-alert light-blue rounded-4 width-50">Open</span>'
  end
  
end
